package cn.yangliu.task.socket;

import cn.yangliu.task.entity.Task;

/**
 * 作者 杨柳
 * 时间 2017-09-25 10:45
 * 描述
 */
public class ClientTest {

    public static void main(String[] args) throws Exception {
        TaskSocketClient client = new TaskSocketClient();
        client.setPort(1212);
        client.afterPropertiesSet();
        SocketInfo info =new SocketInfo();
        info.setAction("asdasd");
        info.setTask(new Task());
        String res=client.send(info);
        System.out.println(res);
    }
}
